<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
  </head>
  <body>
    <div id="app">
      <btn-a>
        <template slot="aa" slot-scope="scrop">
          <span>{{scrop.test}}</span>
          <h1 :style="'fontSize: '+scrop.css">哈哈哈 </h1>
        </template>

       
      </btn-a>
    </div>
    <script src="./vue.js"></script>
    <script>
       Vue.component("btn-a",{
        template:` <div> <slot name="aa" css="15px" test="abc"> </slot></div>`,
        data(){
          return{
            
          }
        },
      })
      const vm=new Vue({
        el:'#app',
        data:{},
        methods:{},
       })
    </script>
  </body>
</html>